<template>
  <div class="wrapper">
    <div class="remmoendItem" v-for="(item, index) in recommends" :key="index">
      <a :href="item.link">
        <img :src="item.image" alt="" />
      </a>
      <div class="text">{{ item.title }}</div>
    </div>
  </div>
</template>

<script>
export default {
  name: "RecommendView",
  props: {
    recommends: {
      type: Array,
      default() {
        return [];
      },
    },
    data() {
      return {};
    },
    created() {
      console.log(this.recommends);
    },
  },
};
</script>

<style scoped>
.wrapper {
  display: flex;
  /* width: 100%; */
  padding-top: 10px;
  padding-bottom: 20px;
  align-items: center;
  justify-content: center;
  border-bottom: 10px solid #eee;
}
.remmoendItem {
  flex: 1;
  text-align: center;
  font-size: 14px;
}
.remmoendItem img{
  vertical-align: middle;
  width: 80px;
  height: 80px;
  margin-bottom: 10px;
}
</style>>